import torch.utils.data as data



class HandDataset(data.Dataset):
    def __init__(self, root = r'I:\Datasets\手部数据\hand_labels\manual_train'):
        self.root = root

        self.imgs = []
        for line in open(self.root):
            line = line.strip()
            line = line.split(' ')
            self.imgs.append((line[0], int(line[1])))

    def __getitem__(self, index):
        pass

    def __len__(self):
        return len(self.imgs)